package yagwl.service.demo;

import java.util.List;

public interface CommerceService {
  
  public ProductCategoryEntity getCategoryTree();
  public ProductCategoryEntity createCategory(ProductCategoryEntity category);
  public void updateCategory(ProductCategoryEntity category);
  public void deleteCategorySubTree(String categoryId);

  public void addProduct(String categoryId, String productId);
  public void removeProduct(String categoryId, String productId);
  
  public List<ProductEntity> getProducts();
  public ProductEntity createProduct(ProductEntity product);
  public void updateProduct(ProductEntity product);
  public void deleteProduct(String productId);

  public CartEntity addToCart(String productIdStr, int quantity);
  public CartEntity removeFromCart(String productId);
  public CartEntity getCart();
  
}